/* 
 * File:   JInOutPut.h
 * Author: johnneyshi
 *
 * Created on 2013年3月5日, 下午5:08
 */

#ifndef JINOUTPUT_H
#define	JINOUTPUT_H

#include <iostream>

enum PutPosition
{
    PutPositionBegin,
    PutPositionCur,
    PutPositionEnd
};

class JInOutPut 
{
public:
    JInOutPut()
    {
        
    }
    virtual void Write(const char* c,int size) = 0;
    virtual int Read(char* c,int size) = 0;
    virtual void SeekP(int offset,PutPosition position) = 0;
//    virtual bool IsEnd() = 0;
    virtual ~JInOutPut(){}
private:
};

#endif	/* JINOUTPUT_H */

